<%-- 
    Document   : ProcessProfilePage
    Created on : Mar 9, 2015, 2:00:34 PM
    Author     : trang_000
--%>

<%-- 
    Document   : AddProfilePage
    Created on : Feb 24, 2015, 10:14:15 PM
    Author     : trang_000
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="description" content="Member Register Page">
        <title>Register - Online Marketing System</title>
        <link href="<%= request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
        <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
        <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
        <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
        <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
        <link rel="stylesheet" href="/resources/demos/style.css" />

        <script>
            $(function () {
                $('#start').datepicker();
                $('#end').datepicker();
                $('#dob').datepicker();
            });
        </script>
        <s:head />
    </head>
    <body>
        <div class="headerbg">
            <%@include file="/include/nHeader.jsp" %>
        </div>
        <div class="contentbg">
            <div class="content">
                <div class="registerbg">
                    <div class="registerForm">                     
                        <h1>Des Infos Personnels du Candidate</h1>
                        <s:form>
                            <s:textfield name="firstName" label="First Name" size="30" disabled="false" value="%{profile.firstName}" readonly="true"/>
                            <s:textfield name="lastName" label="Last Name" size="30" disabled="false" value="%{profile.lastName}" readonly="true"/>
                            <s:textfield name="address" label="Address" size="30" disabled="false" value="%{profile.address}"/>
                            <s:textfield name="phone" label="Phone" size="30" disabled="false" value="%{profile.phoneNumber}"/>
                            <s:textfield name="dob" label="Birth Date" size="30" disabled="false" value="%{profile.birthdate}" readonly="true"/>
                            <s:textfield name="email" label="E-Mail" size="30" disabled="false" value="%{profile.email}"/> 
                        </s:form>
                    </div>
                    <div class="registerTerms">
                        <h1>Information De Contrait</h1>
                        <s:form namespace="/Contract" action="verifier" >
                            <s:textfield name="contract.dateBegin" label="Begin Date" size="30" id="start" />
                            <s:textfield name="contract.dateEnd" label="End Date" size="30" id="end"/>
                            <s:textarea name="contract.description" label="Description" style="width: 198px; height: 100px;" />
                            <s:hidden name="profileID" value="%{profile.profileID}"/>
                            <table>
                                <tr>
                                    <td>
                                        <s:reset value="Refuser" cssStyle="width: 96px" theme="simple" />
                                    </td>
                                    <td>
                                        <s:submit  value="Verifier" cssStyle="width: 96px; margin-left: 132px" theme="simple" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2"><s:actionerror /></td>
                                </tr>
                            </table>
                        </s:form>

                        <h1>Notes</h1>
                        <p>- <b>All fields in contrait required.</b></p>
                        <p>- By clicking the [Verifier] button, you <b>accept the profile of candidate</b></p>
                    </div>
                </div>
            </div>
        </div>
        <div class="footerbg">
            <%@include file="/include/iFooter.jsp" %>
        </div>
    </body>
</html>
